package cn.zktr.Personnel.model.pojos;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the per_sly_tsx database table.
 * 
 */
@Entity
@Table(name="per_sly_tsx")
@NamedQuery(name="PerSlyTsx.findAll", query="SELECT p FROM PerSlyTsx p")
public class PerSlyTsx implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="PER_SLY_TSX_TSXID_GENERATOR", sequenceName="SEQ1",allocationSize=1,initialValue=1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="PER_SLY_TSX_TSXID_GENERATOR")
	private int tsxid;

	private String tsxval;

	//bi-directional many-to-one association to PerSlyPjt
	@ManyToOne
	@JoinColumn(name="PJTID")
	private PerSlyPjt perSlyPjt;

	//bi-directional many-to-one association to PerSlySet
	@ManyToOne
	@JoinColumn(name="SETID")
	private PerSlySet perSlySet;

	public PerSlyTsx() {
	}

	public int getTsxid() {
		return this.tsxid;
	}

	public void setTsxid(int tsxid) {
		this.tsxid = tsxid;
	}

	public String getTsxval() {
		return this.tsxval;
	}

	public void setTsxval(String tsxval) {
		this.tsxval = tsxval;
	}

	public PerSlyPjt getPerSlyPjt() {
		return this.perSlyPjt;
	}

	public void setPerSlyPjt(PerSlyPjt perSlyPjt) {
		this.perSlyPjt = perSlyPjt;
	}

	public PerSlySet getPerSlySet() {
		return this.perSlySet;
	}

	public void setPerSlySet(PerSlySet perSlySet) {
		this.perSlySet = perSlySet;
	}

}